% Author: Vasyl Mykhalchuk
% Created: 30/01/2012

classdef Mesh < handle
    properties
        mVert % nV x 3 
        mNumberV
        mFaces % nF x 3
        mNumberF 
    end % properties
    
    methods
        
        % Constructor
        function obj = Mesh(vert, faces)
            obj.mFaces = faces;
            obj.mNumberF = size(faces, 1);
            obj.mVert = toMatrix(vert);
            obj.mNumberV = size( obj.mVert, 1);            
        end % Constructor
        
        function [v] = getVertex(obj, index)
            v = obj.mVert(index, :);
        end % function getVertex
        
    end % methods
    
end % classdef Mesh

